package com.sunda.spmswms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 仓库信息表
 * </p>
 *
 * @author Wayne
 * @since 2020-11-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("COST_CENTER")
@ApiModel(value="CostCenter对象", description="成本中心信息表")
public class CostCenter implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "成本中心")
    @TableId("COST_CENTER_CODE")
    private String costCenterCode;

    @ApiModelProperty(value = "公司代码")
    @TableField("COMPANY_CODE")
    private String companyCode;

    @ApiModelProperty(value = "成本中心名称")
    @TableField("COST_CENTER_NAME")
    private String costCenterName;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }


    public String getCostCenterName() {
        return costCenterName;
    }

    public void setCostCenterName(String costCenterName) {
        this.costCenterName = costCenterName;
    }

    public String getCostCenterCode() {
        return costCenterCode;
    }

    public void setCostCenterCode(String costCenterCode) {
        this.costCenterCode = costCenterCode;
    }

    public String getCompanyCode() {
        return companyCode;
    }

    public void setCompanyCode(String companyCode) {
        this.companyCode = companyCode;
    }

    @Override
    public String toString() {
        return "CostCenter{" +
                "costCenterCode='" + costCenterCode + '\'' +
                ", companyCode='" + companyCode + '\'' +
                ", costCenterName='" + costCenterName + '\'' +
                '}';
    }
}
